<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>主页一</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../lib/layui-v2.5.4/css/layui.css" media="all">
    <link rel="stylesheet" href="../lib/font-awesome-4.7.0/css/font-awesome.min.css" media="all">
    <link rel="stylesheet" href="../css/public.css" media="all">
</head>
<style>
    .layui-top-box {padding:40px 20px 20px 20px;color:#fff}
    .panel {margin-bottom:17px;background-color:#fff;border:1px solid transparent;border-radius:3px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}
    .panel-body {padding:15px}
    .panel-title {margin-top:0;margin-bottom:0;font-size:14px;color:inherit}
    .label {display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em;margin-top: .3em;}
    .layui-red {color:red}
    .main_btn > p {height:40px;}
</style>
<body>
<div class="layuimini-container">
    <div class="layuimini-main layui-top-box">
        <div class="layui-row layui-col-space10">

            <div class="layui-col-md3">
                <div class="col-xs-6 col-md-3">
                    <div class="panel layui-bg-cyan">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-blue">实时</span>
                                <h5>部署总数IP</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins" id="ipCount">0</h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 0</div>
                                <small>宕机IP数</small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-col-md3">
                <div class="col-xs-6 col-md-3">
                    <div class="panel layui-bg-blue">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-cyan">实时</span>
                                <h5>服务总数</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins" id="serverCount">0</h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 0</div>
                                <small>挂停数</small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="layui-col-md3">
                <div class="col-xs-6 col-md-3">
                    <div class="panel layui-bg-green">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-orange">实时</span>
                                <h5>实例统计</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins" id="beanCount">0</h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 0</div>
                                <small>异常总数</small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-col-md3">
                <div class="col-xs-6 col-md-3">
                    <div class="panel layui-bg-orange">
                        <div class="panel-body">
                            <div class="panel-title">
                                <span class="label pull-right layui-bg-green">实时</span>
                                <h5>任务总数</h5>
                            </div>
                            <div class="panel-content">
                                <h1 class="no-margins" id="methodCount">0</h1>
                                <div class="stat-percent font-bold text-gray"><i class="fa fa-commenting"></i> 0</div>
                                <small>执行总数</small>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="layui-box">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md12">
                <blockquote class="layui-elem-quote main_btn">
                    <p>微信公众号：bugstack虫洞栈</p>
                    <p>本项目是作者小傅哥使用技术栈JavaFx、Netty4.x、SpringBoot、Mysql等，搭建的桌面版聊天工程。这个页面仿照微信桌面版部分样式实现核心功能，意在技术实战侧重于将技术落地。如果本项目能为您提供帮助，请给予支持(关注、点赞、分享)！</p>
                    <p>喜欢此后台模板的可以给我的GitHub加个Star支持一下</p>
                    <p>GitHub地址：
                        <iframe src="https://ghbtns.com/github-btn.html?user=fuzhengwei&repo=itstack-demo-netty&type=star&count=true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
                        <iframe src="https://ghbtns.com/github-btn.html?user=fuzhengwei&repo=itstack-demo-netty&type=fork&count=true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe>
                    </p>
                </blockquote>
            </div>
        </div>
    </div>

    <div class="layui-box">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md6">
                <table class="layui-table">
                    <colgroup>
                        <col width="150">
                        <col width="200">
                        <col>
                    </colgroup>
                    <thead>
                    <tr>
                        <th>昵称</th>
                        <th>加入时间</th>
                        <th>签名</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>小傅哥</td>
                        <td>2020-01-01</td>
                        <td>沉淀、分享、成长，让自己和他人都能有所收获！</td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="layui-col-md6">
                <ul class="layui-timeline">
                    <li class="layui-timeline-item">
                        <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                        <div class="layui-timeline-content layui-text">
                            <h3 class="layui-timeline-title">01月01日</h3>
                            <p>
                                规划设计了解javafx
                                <br>1. 了解javafx初步探索技术使用电
                                <br>2. 规划设计开发内容，输出技术文档 <i class="layui-icon"></i>
                            </p>
                        </div>
                    </li>
                    <li class="layui-timeline-item">
                        <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                        <div class="layui-timeline-content layui-text">
                            <h3 class="layui-timeline-title">02月08日</h3>
                            <p>元宵节计划</p>
                            <ul>
                                <li>1. 处理开发测试内容</li>
                                <li>2. 编写汇总技术文档</li>
                            </ul>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<script src="../lib/layui-v2.5.4/layui.js" charset="utf-8"></script>
<script src="../js/lay-config.js?v=1.0.4" charset="utf-8"></script>
<script>

layui.use(['form', 'table'], function () {
 var $ = layui.jquery,
            form = layui.form,
            table = layui.table;

      $.ajax({
              type: 'post',
              url: '/api/queryDataCollect',
              success: function(res){
                if(res.code== 0){
                   $("#ipCount").text(res.data.ipCount);
                   $("#serverCount").text(res.data.serverCount);
                   $("#beanCount").text(res.data.beanCount);
                   $("#methodCount").text(res.data.methodCount);
                }
              }
      });

});

</script>
</body>
</html>